package com.ljw.po;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;

/**
 * @Author: lijunwei
 * @Time: 2019/3/11 21:55
 */
@Document(indexName="index_entity_04", type="tstype_04")
public class Entity implements Serializable {

    private static final long serialVersionUID = -763638353551774166L;
    @Id
    private Long id;

    private String name;

    public Entity() {
        super();
    }

    public Entity(Long id, String name) {
        this.id = id;
        this.name = name;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


}
